
IF %1.==. GOTO END

del netpad*setup.exe

md Bin

mt.exe -manifest ..\%1\netpad.exe.manifest -outputresource:..\%1\netpad.exe;1  

copy /Y ..\%1\netpad.exe .\Bin\
copy /Y ..\%1\netpad.pdb .\Bin\
copy /Y C:\Windows\libeay32.dll .\Bin\
copy /Y C:\Windows\ssleay32.dll .\Bin\
copy /Y C:\Windows\libgsasl.dll .\Bin\
copy C:\VC2008\VC\redist\x86\Microsoft.VC90.CRT\msvcp90.dll .\Bin\
copy C:\VC2008\VC\redist\x86\Microsoft.VC90.CRT\MSVCR90.dll .\Bin\


"C:\Program Files (x86)\NSIS\makensis.exe" install.nsi


:end

rd /s /q Bin